/* 设置页面样式 */
.settings-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-header {
    margin-bottom: 40px;
}

.settings-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.settings-description {
    color: #b3b3b3;
    font-size: 16px;
    max-width: 700px;
    line-height: 1.6;
}

/* 设置页面布局 */
.settings-layout {
    display: flex;
    gap: 30px;
}

/* 设置侧边栏 */
.settings-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.settings-nav {
    background-color: #282828;
    border-radius: 8px;
    overflow: hidden;
}

.settings-nav-item {
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #b3b3b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
}

.settings-nav-item i {
    margin-right: 10px;
    font-size: 16px;
}

.settings-nav-item:hover {
    color: #fff;
    background-color: #333;
}

.settings-nav-item.active {
    color: #fff;
    background-color: #333;
    border-left-color: #1DB954;
}

/* 设置内容区 */
.settings-content {
    flex-grow: 1;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #fff;
}

/* 设置卡片 */
.settings-card {
    background-color: #282828;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.settings-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.settings-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.settings-card-content {
    padding: 20px;
}

/* 表单元素 */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 8px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: #1DB954;
    outline: none;
}

.form-group input:disabled, 
.form-group textarea:disabled, 
.form-group select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.description {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 编辑按钮 */
.edit-btn {
    background-color: transparent;
    color: #1DB954;
    border: 1px solid #1DB954;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background-color: rgba(29, 185, 84, 0.1);
}

/* 保存按钮 */
.save-btn {
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background-color: #1ed760;
    transform: scale(1.05);
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

/* 会员信息 */
.membership-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.membership-status {
    display: flex;
    flex-direction: column;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-badge.free {
    background-color: #5c5c5c;
    color: #fff;
}

.status-badge.premium {
    background-color: #FFD700;
    color: #000;
}

.membership-status p {
    color: #b3b3b3;
    font-size: 14px;
}

.premium-btn {
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.premium-btn:hover {
    background-color: #1ed760;
    transform: scale(1.05);
}

/* 个人资料 */
.profile-avatar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    background-color: transparent;
    color: #1DB954;
    border: 1px solid #1DB954;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    background-color: rgba(29, 185, 84, 0.1);
}

/* 开关样式 */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-label-container {
    flex-grow: 1;
}

.toggle-label-container label {
    margin-bottom: 4px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    border-radius: 34px;
    transition: .4s;
}

.toggle-switch-label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-input:checked + .toggle-switch-label {
    background-color: #1DB954;
}

.toggle-input:checked + .toggle-switch-label:before {
    transform: translateX(26px);
}

/* 危险区域 */
.danger-zone .settings-card-header {
    background-color: rgba(220, 53, 69, 0.1);
}

.danger-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background-color: #c82333;
}

.warning-text {
    font-size: 12px;
    color: #dc3545;
    margin-top: 10px;
}

/* 下拉框样式 */
select {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    border-color: #1DB954;
    outline: none;
}

select option {
    background-color: #333;
    color: #fff;
}

select option:disabled {
    color: #888;
}

/* 滑块控件样式 */
.range-control {
    margin-top: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #555;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #1DB954;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #1DB954;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #b3b3b3;
}

/* 轮廓按钮 */
.outline-btn {
    background-color: transparent;
    color: #1DB954;
    border: 1px solid #1DB954;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background-color: rgba(29, 185, 84, 0.1);
} 